<?php

namespace App\library\services;
use App\Models\FangCircle as FangCircleModel;

class FangCircleService extends BaseServices
{
    /**
     * author::william
     * 楼市圈
     * @return array
     */
    public static function getInfo()
    {
        $info = FangCircleModel::orderBy('time','desc')->select('id', 'content', 'agent_id', 'images')->with('agent')->get();
        $info && $info = $info->toArray();
        foreach ($info as &$v){
            $v['images'] = explode('-',$v['images']);
        }
        unset($v);
        return self::success('查询成功',$info);
    }
}
